# Contributor: Patrycja Rosa <alpine@ptrcnull.me>
# Maintainer: Patrycja Rosa <alpine@ptrcnull.me>
pkgname=android-apktool
pkgver=2.10.0
pkgrel=0
pkgdesc="Tool for reverse engineering Android apk files"
url="https://apktool.org/"
arch="all !x86 !armhf !armv7 !riscv64 !loongarch64" # blocked by openjdk11
license="Apache-2.0"
depends="openjdk11-jre-headless"
source="https://bitbucket.org/iBotPeaches/apktool/downloads/apktool_$pkgver.jar
	apktool
	"
options="!check"
# no tests available

package() {
	install -Dm644 "$srcdir"/apktool_$pkgver.jar "$pkgdir"/usr/share/apktool/apktool.jar
	install -Dm755 "$srcdir"/apktool "$pkgdir"/usr/bin/apktool
}

sha512sums="
0fca885fea5f58e1eea4ee6777bb6d20eea9c7342a9ff940a8cad79bc71d8408b25d5d6fd424de4066ad8b4d7abf1f3b8551f96cd3b1023363afb66eba7893c6  apktool_2.10.0.jar
8cb0d693996fe5a3df2f49120336962bc4d36ad6540744b6bc53dd1c03cc2b34e339f3749804abd9c054510b7093da77b18e77e886795c4f6b2206c64ea0247e  apktool
"
